import request from "@/utils/request";
import formDataRequest from "@/utils/formData_request";
// import uploadFileRequest from "@/utils/upload_file_request";



// 文件上传
export const uploadFileApi = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/qyAssessmentContent/upload",
        data: options
    })
}
// 查询文件
export const GetFileApi = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/queryAchment",
        data: options
    })
}


// 查询发起考核列表
export const GetViewAssessmentStauts = (options: any) => {
    return request({
        method: "POST",
        url: "/api/repoting/viewAssessmentStauts",
        data: options
    })
}

// 发起考核
export const AddAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/addAssessment",
        data: options
    })
}
// 发起考核 - 删除
export const DelAssessment = (options: any) => {
    return request({
        method: "POST",
        url: "/api/repoting/delAssessment",
        data: options
    })
}
// 发起考核列表查看详情
export const GetQuerySummaryDetails = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/querySummary",
        data: options
    })
}
// 发起考核 - 查看详情 - 查看详情
export const GetEmployeeViewDetails = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/employeeView",
        data: options
    })
}

// 发起考核列表 - 停用
export const PostEndAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/endAssessment",
        data: options
    })
}

// 发起考核列表 - 启用
export const PostBeginAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/beginAssessment",
        data: options
    })
}

// 发起考核列表 - 开始汇总

export const PostStartSummary = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/startSummary",
        data: options
    })
}

// 发起考核列表 -  详情 -  发送前置（查询是否通过验证）
export const PostCheckSubmit = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/checkSubmit",
        data: options
    })
}
// 发起考核列表 -  详情 -  发送
export const PostSendSummaryLeader = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/sendSummaryLeader",
        data: options
    })
}

// 我的考核列表 - 待提交
export const GetQueryPersonalAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        // url: "/api/repoting/queryPersonalAssessment",
        url: "/api/repoting/waitingSubmission",
        data: options
    })
}
// 我的考核列表 - 已提交
export const GetSubmittedByempId = (options: any) => {
    return formDataRequest({
        method: "POST",
        // url: "/api/repoting/queryPersonalAssessment",
        url: "/api/repoting/submittedByempId",
        data: options
    })
}
// 我的考核 - 填报 - 工作考核自评 - 查询列表
export const GetQueryPersonalScore = (options: any) => {
    return request({
        method: "POST",
        url: "/api/repoting/queryPersonalScore",
        data: options
    })
}

// 我的考核 - 填报 提交  （保存状态 0 草稿，1 提交）
export const PostSubmitAssessmenteMoloyee = (options: any) => {
    return request({
        method: "POST",
        url: "/api/repoting/submitAssessmenteMoloyee",
        data: options
    })
}

// 我的考核 - 填报 - 查询个人工作计划
export const GetQueryPersonalWorkPlan = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/queryPersonalWorkPlan",
        data: options
    })
}

// 我的待办-  列表
export const GetReviewAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/evaluete/reviewAssessment",
        data: options
    })
}
// 我的待办 - 详情 - 退回
export const PostauditAssessment = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/evaluete/auditAssessment",
        data: options
    })
}

// 我的考核  - 详情 - 查看
export const GetQueryRealTimeScore = (options: any) => {
    return request({
        method: "POST",
        url: "/api/repoting/queryRealTimeScore",
        data: options
    })
}




// 汇总列表 
export const GetAdutiView = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/adutiView",
        data: options
    })
}

//  汇总 -  一键审核
export const PostoneClickReview = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/summary/oneClickReview",
        data: options
    })
}

// 顶部header 获取通知数量
export const GetPendingMessageCount = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/repoting/getPendingMessageCount",
        data: options
    })
}

// 全员考核统计 - 职工双月考核统计
export const GetWorkersStatistcs = (options: any) => {
    return request({
        method: "POST",
        url: "/api/stats/monthlyStats",
        data: options
    })
}

// 全员考核统计 - 获取部门
export const GetDeptInfo = (options: any) => {
    return request({
        method: "POST",
        url: "/api/stats/deptInfo",
        data: options
    })
}

// 获取个人信息
export const GetUserInfo = (options: any) => {
    return formDataRequest({
        method: "POST",
        url: "/api/qyAssessmentContent/logingUserInfo",
        data: options
    })
}